package com.itheima;
//导包
//输入
import java.util.Scanner;

public class jian_fei {
    public static void main(String[] args) {
        //创建对象
        Scanner sc = new Scanner(System.in);
        //接收数据
        int week = sc.nextInt();
        if (week < 1 || week > 7)
            System.out.println("不存在");
        else if (week == 1)
            System.out.println("1");
        else if (week == 2)
            System.out.println("2");
        else if (week == 3)
            System.out.println("3");
        else if (week == 4)
            System.out.println("4");
        else if (week == 5)
            System.out.println("5");
        else if (week == 6)
            System.out.println("6");
        else
            System.out.println("7");
    }
}
